<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>储值管理</title>
 <script type="text/javascript" src="../js/common.js"></script>
   <link rel="stylesheet" href="../css/960.css" type="text/css" media="screen">
   <link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
   <link rel="stylesheet" href="../css/print-preview.css" type="text/css" media="screen">
   <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
   <script src="../js/jquery.print-preview.js" type="text/javascript" charset="utf-8"></script>
   <script src="../js/find.js" type="text/javascript" charset="utf-8"></script>
   <script src="../js/utils.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript">
        $(function() {
           // $("#feature > div").scrollable({interval: 2000}).autoscroll();
            //$("#feature333 > div").scrollable({interval: 2000}).autoscroll();
            //$('#aside').prepend('<a class="print-preview">Print this page</a>');

            
            var billId = getIdByName("id");
            
            
            var dt = _findInfo("../memberDepositBill/find/shopId/0/id/"+billId, null);
            if(IsNotEmpty(dt)&&dt.state==0){
            	$("#shopName").html(getHtmlString(getHeadIndexValue(0, dt, "shopName")));
            	$("#custName").html(getHtmlString(getHeadIndexValue(0, dt, "custName")));
            	$("#memberCard").html(getHtmlString(getHeadIndexValue(0, dt, "memberCard")));
            	$("#mp").html(getHtmlString(getHeadIndexValue(0, dt, "mp")));
            	$("#Memo").val(getHtmlString(getHeadIndexValue(0, dt, "Memo"))+"33");
            	$("#StoredRuleName").html(getHtmlString(getHeadIndexValue(0, dt, "StoredRuleName")));
            	$("#Amount").html(getHtmlString(getHeadIndexValue(0, dt, "Amount")));
            	$("#gotDeposit").html(getHtmlString(getHeadIndexValue(0, dt, "gotDeposit")));
            	$("#CreateFileTime").html(getHtmlString(getHeadIndexValue(0, dt, "CreateFileTime")));
            	$("#CreateFileMan").html(getHtmlString(getHeadIndexValue(0, dt, "CreateFileMan")));
            	$("#sum").html(getHtmlString(getHeadIndexValue(0, dt, "sum")));
            	$("#BillNo").html(getHtmlString(getHeadIndexValue(0, dt, "BillNo")));
            	 var type= getHtmlString(getHeadIndexValue(0, dt, "IsDpAdjustment"))
            	 
            	 if(type == 1){
            		 type = "储值变动";
            		 $("#timeType").html("变动日期：")
     			}else{
     				type = "会员储值";				
           		 $("#timeType").html("储值日期：")
  			}
            	 
            	 $("#type").html(type)
                }
            var nowDate = new Date();
            $("#now").html( nowDate.getFullYear()+"-"+(nowDate.getMonth() + 1)+"-"+nowDate.getDate())
            
                    $.printPreview.loadPrintPreview();
            
         /*    // Add keybinding (not recommended for production use)
            $(document).bind('keydown', function(e) {
                var code = (e.keyCode ? e.keyCode : e.which);
                if (code == 80 && !$('#print-modal').length) {
                    $.printPreview.loadPrintPreview();
                    return false;
                }            
            }); */
        });
    </script>
</head>
<body>
<center>
<!-- <div  class="enter" ><input type="button" id="aside" value="打印" class="btn"></div><br>
 -->
<div id="printId" class="list">
	<div class="record" align="center" style="font-size: 17px;text-align: center;">储值单</div>
	<div class="record"><label><span>店面：</span><i id="shopName"></i></label><label><span>类型：</span><i id="type"></i></label><label><span id="timeType">储值日期：</span><i id="CreateFileTime"></i></label></div>
	<div class="record"><label><span>会员卡号：</span><i id="memberCard"></i></label><label><span>姓名：</span><i id="custName"></i></label><label><span>手机：</span><i id="mp"></i></label></div>
	<div class="record"><label><span>单据号：</span><i id="BillNo"></i></label><label><span>规则：</span><i id="StoredRuleName"></i></label></div>
		<div class="record"><label><span>储值金额：</span><i id="Amount"></i></label><label><span>赠送金额：</span><i id="gotDeposit"></i></label><label><span>实际金额：</span><i id="sum"></i></label></div>
	<div class="record"><label><span>备注：</span><strong id="Memo" class="sort"></strong></label></div>
	<div class="record" style="text-align:left;line-height:20px;margin-bottom:10px;"><label><span>经办人：</span><i id="CreateFileMan"></i></label><label><span>打票日期：</span><i id="now"></i></label><label><span>客户签字：</span><i></i></label></div>
    <div style="height:10px;"></div>
</div>
</center>

</body>
<style type="text/css">
.tb1 td,.tb1 th{text-align:center;padding:2px 3px;}
.list{width:600px;}
.enter .btn{padding:4px 14px;background-color:#0079BA;border:none;font-size:14px;font-family:Microsoft Yahei;color:#fff;border-radius:3px;}
</style>
</html>